import request from '@/utils/request'

// 积分商品新增
export function integralAdd(data) {
  return request({
    url: '/do?c=730008',
    method: 'post',
    data: data
  })
}
// 积分商品列表
export function integralList(data) {
  return request({
    url: '/do?c=730009',
    method: 'post',
    data: data
  })
}
// 积分商品上架、下架修改
export function integralStatusEdit(data) {
  return request({
    url: '/do?c=730012',
    method: 'post',
    data: data
  })
}
// 积分商品编辑回显
export function integralEditQuery(data) {
  return request({
    url: '/do?c=730010',
    method: 'post',
    data: data
  })
}
// 积分商品编辑保存
export function integralEditSave(data) {
  return request({
    url: '/do?c=730011',
    method: 'post',
    data: data
  })
}
// 积分商品删除
export function integralRemove(data) {
  return request({
    url: '/do?c=730013',
    method: 'post',
    data: data
  })
}
// 积分兑换优惠券列表
export function integralCouponsList(data) {
  return request({
    url: '/do?c=401014',
    method: 'post',
    data: data
  })
}
// 积分兑换订单
export function integralOrder(data) {
  return request({
    url: '/do?c=730014',
    method: 'post',
    data: data
  })
}
// 积分明细 PC
export function integralDetail(data) {
  return request({
    url: '/do?c=730016',
    method: 'post',
    data: data
  })
}
// 消费类型
export function consumptionType(data) {
  return request({
    url: '/do?c=730024',
    method: 'post',
    data: data
  })
}
// 积分兑换发货
export function integralDeliver(data) {
  return request({
    url: '/do?c=730015',
    method: 'post',
    data: data
  })
}
// 积分兑换详情
export function integralOrderDetail(data) {
  return request({
    url: '/do?c=730027',
    method: 'post',
    data: data
  })
}
// 自提点新增
export function shopPickUpAddressAdd(data) {
  return request({
    url: '/do?c=731002',
    method: 'post',
    data: data
  })
}
// 自提点详情
export function shopPickUpAddressDetail(data) {
  return request({
    url: '/do?c=731005',
    method: 'post',
    data: data
  })
}
// 自提点查询列表
export function shopPickUpAddressPageList(data) {
  return request({
    url: '/do?c=731001',
    method: 'post',
    data: data
  })
}
// 自提点修改
export function shopPickUpAddressUpdate(data) {
  return request({
    url: '/do?c=731003',
    method: 'post',
    data: data
  })
}
// 禁用与启用
export function shopPickUpAddressUpdateStatus(data) {
  return request({
    url: '/do?c=731004',
    method: 'post',
    data: data
  })
}
// 自提点删除
export function shopPickUpAddressDel(data) {
  return request({
    url: '/do?c=731007',
    method: 'post',
    data: data
  })
}
